package com.qiwenshare.file.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.hibernate.annotations.Comment;

import javax.persistence.*;

@Data
@Table(name = "recoveryfile", uniqueConstraints = {
        @UniqueConstraint(name = "user_file_id_index3", columnNames = {"userFileId"})
})
@Entity
@TableName("recoveryfile")
public class RecoveryFile {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    //@TableId(type = IdType.AUTO)
    //@Column(columnDefinition="bigint(20)")
    @TableId
    private Long recoveryFileId;

    @Comment("用户文件id")
    @Column(length = 20)
    private String userFileId;

    @Comment("删除时间")
    @Column(length = 25)
    private String deleteTime;

    @Comment("删除批次号")
    @Column(length = 50)
    private String deleteBatchNum;
}
